﻿
@{
    ViewBag.Title = "DepartmentList";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css {
    <link href="~/Assets/css/lib/bootstrap-select.css" rel="stylesheet" />
    <style>
        #typelist ul li {
            list-style-type: none;
        }

        #typelist .box {
            width: 200px;
            /*border: 1px solid red;*/
        }

        #typelist ul {
            margin-left: 20px;
            /*border: 1px solid blue;*/
        }

        #typelist .menuUl li {
            margin: 10px 0;
        }

            #typelist .menuUl li span:hover {
                text-decoration: underline;
                cursor: pointer;
            }

            #typelist .menuUl li i {
                margin-right: 10px;
                top: 0px;
                cursor: pointer;
                color: #161616;
            }
    </style>
}
<div class="page-content" ng-cloak ng-controller="HiddenTroubleController" ng-init="PageLoading=false;
     Type={};
     Type.ParentNodeId='';
     Type.ParentName='';
     Type.Valid=1;
     GetTypeTreeList('typelist');
     ">
    <div class="load" ng-show="PageLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />
			</path>
		</svg>
            <div class="load-msg">{{LoadingMsg}}</div>
        </div>
    </div>
    <div class="page-heading">
        <h1>添加问题类型</h1>
        <div class="options">
            <div class="btn-toolbar">
            </div>
        </div>
    </div>
    <ol class="breadcrumb">
        <li><a>主页</a></li>
        <li><a>问题管理</a></li>
        <li><a>问题类型</a></li>
        <li class="active"><a>添加问题类型</a></li>
    </ol>

    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading"><h2>添加问题类型</h2></div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-5" id="typelist" style="border-right:1px solid grey;height:500px; overflow-y:scroll;">

                            </div>
                            <div class="col-md-6" style="margin-left:20px;">
                                <form action="" class="form-horizontal row-border">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">所属分类</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" id="ParentName" readonly>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">分类名称</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" ng-model="Type.TypeName">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">分类排序</label>
                                        <div class="col-sm-8">
                                            <input type="text" class="form-control" ng-model="Type.SortBy">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">是否启用</label>
                                        <div class="col-sm-8">
                                            <div class="radio-inline"><label ng-click="Type.Valid=1;"><input type="radio" name="Valid" checked>是</label></div>
                                            <div class="radio-inline"><label ng-click="Type.Valid=0;"><input type="radio" name="Valid">否</label></div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="col-sm-8 col-sm-offset-2">
                                            <button class="btn-primary btn" ng-click="AddHiddenTroubleType(Type);">保存</button>
                                            <a href="HiddenTroubleTypeList" class="btn-default btn">取消</a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                    <div class="panel-footer">
                        <div class="row">
                            
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

@section Js{
    <script src="~/Assets/js/libs/proTree.js"></script>
    <script src="~/Assets/js/pg/HiddenTrouble.js"></script>
}